package com.itheima.switchdemo;

public class SwitchDemo2 {
    public static void main(String[] args) {
        int number = 1;
        switch (number) {
            case 1 -> System.out.println("1");
            case 2 -> System.out.println("2");
            case 3 -> System.out.println("3");
            case 4 -> System.out.println("4");
            case 5 -> System.out.println("5");
            default -> System.out.println("没有这种选项");
        }
    }
}
